<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
	<title><?php Options::out( 'title' );
	
		if( ( 	isset( $request->display_entry ) || isset( $request->display_page ) )  
			&& ($request->display_post || $request->display_page ) 
			&& isset( $post ) ) 
			{ echo " - {$post->title}"; } 
			else if ( Controller::get_var( 'entire_match' ) != "" ) 
			{
				echo ' - ' . ucfirst( strtolower( Controller::get_var( 'entire_match' ) ) );
			}
	?></title>
	<meta name="generator" content="Habari">
	<link rel="edit" type="application/atom+xml" title="Atom Publishing Protocol" href="<?php URL::out( 'atompub_servicedocument' ); ?>">
	<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $theme->feed_alternate(); ?>">
	<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php URL::out( 'rsd' ); ?>">
	<link rel="stylesheet" type="text/css" media="screen" href="<?php Site::out_url( 'theme' ); ?>/css/style.css">
	<link rel="Shortcut Icon" href="<?php Site::out_url( 'theme' ); ?>/favicon.ico">
	<?php $theme->header(); ?>	

	<!-- <script src="<?php Site::out_url( 'theme' ); ?>/js/jquery.fadescroll.js" type="text/javascript"></script> -->


	<!--<script src="<?php echo $theme->get_url(); ?>/js/cufon-yui.js" type="text/javascript"></script>
	<script src="<?php echo $theme->get_url(); ?>/js/Vegur.font.js" type="text/javascript"></script>-->

</head>

<body id="<?php $theme->body(); ?>">
<header>
		<nav>
	        <a id="logo" href="<?php Site::out_url( 'habari' ); ?>">Broken8.se</a>
			<ul>
				<!-- <li class="search"><?php //$theme->display( 'searchform' ); ?></li> -->
				<li <?php echo( isset( $post ) && $post->slug == 'About' ? " class=\"current\"" : "") ?>><a id="about" href="<?php Site::out_url( 'habari' ); ?>/about"><span>About</span>Random rambling about me and the site</a></li>
				<li <?php echo( isset( $post ) && $post->slug == 'Archives' ? " class=\"current\"" : "") ?>><a id="archives" href="<?php Site::out_url( 'habari' ); ?>/archives"><span>Archives</span>The huge file cabinet storing everything old</a></li>
				<li <?php echo( isset( $post ) && $post->slug == 'Projects' ? " class=\"current\"" : "") ?>><a id="projects" href="<?php Site::out_url( 'habari' ); ?>/projects"><span>Projects</span>All my non existing projects</a></li>

	        </ul>
	        <!-- <a id="jump-to-content" href="#articles">Jump down to the content</a> -->
        </nav>
</header>